package com.mall.b2c.domain.intergral;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mall.common.domain.BaseEntity;
@Entity
@Table(name = "b2c_credit_shop_product")
public class ShopProductDomain extends BaseEntity{

	private ShopClassDomain shopclass;
	
	private int price;
	private int num;
	private int sale_num;
	private String litpic;
	private String name;
	private String content;//富文本内容
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "class_id")
	public ShopClassDomain getShopclass() {
		return shopclass;
	}
	public void setShopclass(ShopClassDomain shopclass) {
		this.shopclass = shopclass;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getSale_num() {
		return sale_num;
	}
	public void setSale_num(int sale_num) {
		this.sale_num = sale_num;
	}
	public String getLitpic() {
		return litpic;
	}
	public void setLitpic(String litpic) {
		this.litpic = litpic;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
	
}
